#ifndef SAVELEVELDIALOG_H
#define SAVELEVELDIALOG_H

#include "dialogitem.h"

class SaveLevelDialog : public DialogItem
{
    Q_OBJECT
public:
    explicit SaveLevelDialog(const QString &imgName,
                             const QPoint &leftTop,
                             const QPoint &rightBottom,
                             QGraphicsScene *scene = 0,
                             QGraphicsItem *parent = 0);
    void popup();

signals:
    void saveClicked(const QString &name);

public slots:
    void buttonClicked(ButtonItem *who);

private:
    InputBox *inputBox;
    ButtonItem *saveButton;
    ButtonItem *cancelButton;

};

#endif // SAVELEVELDIALOG_H
